//
//  NSString+DZCategory.h
//  Meidaojia
//
//  Created by Darren on 15/5/20.
//  Copyright (c) 2015年 Darren Zheng. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface NSString (DZCategory)

// SRC: http://stackoverflow.com/questions/2018550/how-do-i-create-an-md5-hash-of-a-string-in-cocoa
- (NSString *)MD5String;

// this method is for calculating the actual size for a given width on a multi-line label
- (CGSize)sizeForMaxWidth:(CGFloat)width
                     font:(UIFont *)font
            numberOfLines:(int)numberOfLines;
- (CGSize)sizeForMaxWidth:(CGFloat)width
                     font:(UIFont *)font;
- (CGSize)sizeWithFont:(UIFont *)font;
- (NSMutableDictionary *)queryComponents;


//字符串为空
+(BOOL)isNull:(NSString *)string;
//字符串转成 NSInteger
-(int)IntWithString:(NSString *)String;
//是否有特殊符号.~!@#$%\^\+\*&\\\/\?\|:\.{}()';="
//+(BOOL)BoolhasSpecialsymbol:(NSString *)String;


//在字符串sting1 中将所有string2  替换成string3
-(NSString *)stringByReplacingCharactersInRangeString:(NSString *)string1 andString:(NSString *)string2 andorString:(NSString *)string3;


#pragma mark - ******************** 拼接html语言
+ (NSString *)showInWebView:(NSString *)toBody;


@end
